package com.hoshiicloud.stock.param;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 库存单据类型分页查询参数实体
 *
 * @author : yangcheng
 * @date : 2019/5/18 18:04
 * @mail : maiboyc@163.com
 **/
@ApiModel
@Data
public class WarehouseTypePageParam {

    /**
     *当前页 默认为1
     */
    @ApiModelProperty(name = "pageIndex", value = "当前页码", dataType = "java.lang.Long", example = "1", hidden = true)
    @TableField(exist = false)
    private Long pageIndex = 1L;

    /**
     *每页数量 默认为10
     */
    @ApiModelProperty(name = "pageSize", value = "每页大小", dataType = "java.lang.Long", example = "10", hidden = true)
    @TableField(exist = false)
    private Long pageSize = 10L;


    /**
     * 类别代码
     */
    @ApiModelProperty(name = "code", value = "类别代码", dataType = "java.lang.String", example = "WT001")
    private String code;
    /**
     * 类别名称
     */
    @ApiModelProperty(name = "name", value = "类别名称", dataType = "java.lang.String", example = "租户内部仓")
    @NotNull(message = "类别名称不能为空")
    private String name;

    /**
     * 是否多仓库
     */
    @ApiModelProperty(name = "flag", value = "是否多仓库 1 是 0 否", dataType = "java.lang.String", example = "0")
    private Integer flag;


}  